cmake_minimum_required(VERSION 3.26)
project(PhyEngine)

set(CMAKE_CXX_STANDARD 20)

set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR D:/CppPkg/SFML-2.6.1/lib/cmake/SFML)
# 使用 vcpkg 模块
find_package(SFML COMPONENTS system window graphics network audio REQUIRED)

add_executable(PhyEngine main.cpp
        Physics/Collision/Collision.h
        Physics/Collision/visual.cpp
        Physics/RigidBody/RigidBody2D.h
        Physics/Collision/Collision.cpp
        util/VecOpt.h
)


include_directories(D:/CppPkg/SFML-2.6.1/include)
target_link_libraries(PhyEngine sfml-system sfml-window sfml-graphics sfml-audio sfml-network)

